package hmy.com.integration;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MsgListener {

    @StreamListener("msg")
    public void listenFinishedOrders(String msg) {
        log.info("接收到rabbitMq的消息 [{}].", msg);
    }

}
